package com.xyhua.hutooldemo.proxy;

import cn.hutool.aop.aspects.SimpleAspect;
import cn.hutool.core.lang.Console;
import cn.hutool.log.Log;
import cn.hutool.log.dialect.console.ConsoleLog;

import java.lang.reflect.Method;

public class XyhuaProxy extends SimpleAspect {



    @Override
    public boolean before(Object target, Method method, Object[] args) {
        Console.log("执行前");
        return super.before( target,  method, args);
    }

    @Override
    public boolean after(Object target, Method method, Object[] args, Object returnVal) {
        Console.log("执行后");
        return super.after(target, method, args, returnVal);
    }
}
